//package com.xiaotao.mq.mq;
//
//import com.xiaotao.mq.config.DelayedMessageConfig;
//import lombok.extern.slf4j.Slf4j;
//import org.springframework.amqp.rabbit.annotation.RabbitListener;
//import org.springframework.stereotype.Component;
//
///**
// * 消息接收者
// * @author 16082
// */
//@Component
//@Slf4j
//public class MQReceiver {
//
//    @RabbitListener(queues = DelayedMessageConfig.DIRECT_QUEUE)//监听队列名称
//    @RabbitListener
//    public void receive(Object msg) {
//        System.out.println(msg);
//    }
//
//}